Skip to content

Convert on-machine backend from Nix-Bash into Jq-Bash#15

Open
MagicRB wants to merge 1 commit into
Lassulus:mainfrom
MagicRB:nix-bash-to-jq-bash
Open

Convert on-machine backend from Nix-Bash into Jq-Bash#15
MagicRB wants to merge 1 commit into
Lassulus:mainfrom
MagicRB:nix-bash-to-jq-bash

Conversation

@MagicRB

@MagicRB MagicRB commented Apr 20, 2026

Copy link
Copy Markdown

I don't know which is worse, but I prefer the latter.

Tested manually and also with the NixOS test. Everything seems to work.

@MagicRB MagicRB force-pushed the nix-bash-to-jq-bash branch from 7eede70 to 48c1249 Compare April 20, 2026 22:17
@MagicRB MagicRB marked this pull request as draft April 20, 2026 22:18
I don't know which is worse, but I prefer the latter.

Signed-off-by: magic_rb <magic_rb@redalder.org>
@MagicRB MagicRB force-pushed the nix-bash-to-jq-bash branch from 48c1249 to fd43664 Compare April 20, 2026 22:52
@MagicRB MagicRB marked this pull request as ready for review April 20, 2026 22:52

# check if all files are present or all files are missing
# if not, they are in an inconsistent state and we bail out
while read -u 10 -r _generator_name ; do

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's with the hard-coded number here? (seeing 2 similar instances below)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah forgot to document, thats to not take over stdin as the code in the while block needs it free.

@KiaraGrouwstra

Copy link
Copy Markdown
Contributor

i like the approach! mostly just had one minor question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants